//
//  ZJEventKit.h
//  添加事件到系统日历
//
//  Created by zhengju on 2017/3/18.
//  Copyright © 2017年 zhengju. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ZJEKEvent;
@protocol ZJEventKitDelegate <NSObject>

@required

/**
 EventKit添加成功
 */
- (void)ZJEventKitAddEventSuccess;

/**
 EventKit添加失败
 */
- (void)ZJEventKitAddEventFailure;

@optional

/**
 取消EventKit添加 (用户点击了不允许)
 */
- (void)ZJEventKitAddEventErrorUserCancel;
/**
 删除EventKit添加 成功
 */
- (void)ZJEventKitAddEventErrorUserDeleteSuccess;
/**
 删除EventKit添加 失败
 */
- (void)ZJEventKitAddEventErrorUserDeleteFailure;
/**
 编辑EventKit添加 成功
 */
- (void)ZJEventKitAddEventErrorEditSuccess;
/**
 编辑EventKit添加 失败
 */
- (void)ZJEventKitAddEventErrorEditFailure;
@end

@interface ZJEventKit : NSObject

@property(nonatomic,weak)id<ZJEventKitDelegate> delegate;

+ (instancetype)eventKit;

- (ZJEKEvent *)zjEKEvent;
/**
 链接事件库
 @param delegate 代理
 */
- (void)startZJEventKitWithdelegate:(id<ZJEventKitDelegate>) delegate;

//- (void)startZJEventKitToRemainderWithMessage:(NSString *)message delegate:(id<ZJEventKitDelegate>) delegate;

/**
 添加事件库

 @param event 模型
 */
-(void)addEvent:(ZJEKEvent *)event;

/**
 获得事件

 @param startDate 开始时间
 @param endDate 结束时间
 */
- (void)eventsWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;
/**
 删除某一事件
 */
-(void)deleteEvent;

/**
 编辑某一时间
 */
- (void)editEvent;

@end
